
<?php
class Email{
	public static function getByName($str){
		global $db;
		$sql = "select * from constant where name like '%".$str."%'";
		
		return $db->getRow($sql);
	}
	public static function getByAlias($str){
		global $db;
		$sql = "select * from constant where alias_name like '%".$str."%'";
		return $db->getAll($sql);
	}	
}
?>